#ifndef EDITORMANAGER_H
#define EDITORMANAGER_H

#include <QObject>

class AbstractEditor;

class EditorManager : public QObject
{
    Q_OBJECT
public:
    explicit EditorManager(QObject *parent);

    bool registerEditor(QString editorName, QPointer<AbstractEditor> editor);

    bool setActiveEditor(QString editorName);
    QPointer<AbstractEditor> activeEditor() const;
private:
    typedef QMap<QString, QPointer<AbstractEditor> > Editors;
    Editors m_editors;

    QPointer<AbstractEditor> m_activeEditor;
signals:
    
public slots:

};

#endif // EDITORMANAGER_H
